﻿package plugin.component.view
{

    public class ArmPosType extends Object
    {
        public static const PosWeapon:int = 1;
        public static const PosRing1:int = 2;
        public static const PosHand1:int = 3;
        public static const PosHead:int = 4;
        public static const PosClothes:int = 5;
        public static const PosShoes:int = 6;
        public static const PosYaodai:int = 7;
        public static const PosNecklace:int = 8;
        public static const PosRing2:int = 9;
        public static const PsoHand2:int = 10;
        public static const Wing:int = 101;
        public static const Horse:int = 102;
        public static const FPosClothes:int = 1;
        public static const FPosWeapon:int = 2;
        public static const FPosHead:int = 3;
        public static const FPosPet:int = 5;
        public static const FPosFoot:int = 4;
        public static const roleArms:Array = [PosWeapon, PosHead, PosClothes];

        public function ArmPosType()
        {
            return;
        }// end function

        public static function equals(param1:int, param2:int) : Boolean
        {
            switch(param2)
            {
                case FPosClothes:
                {
                    if (param1 == PosClothes)
                    {
                        return true;
                    }
                    break;
                }
                case FPosWeapon:
                {
                    return true;
                }
                case FPosHead:
                {
                    return true;
                }
                default:
                {
                    break;
                }
            }
            return false;
        }// end function

        public static function armToFashionPos(param1:int) : int
        {
            var _loc_2:int = 0;
            switch(param1)
            {
                case PosClothes:
                {
                    _loc_2 = FPosClothes;
                    break;
                }
                case PosWeapon:
                {
                    _loc_2 = FPosWeapon;
                    break;
                }
                case PosHead:
                {
                    _loc_2 = FPosHead;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
